import React from 'react';
import { Result, Button, Image } from 'antd';
import imgNull from '@/assets/images/404.png';
import { Link } from "react-router-dom";
class Error extends React.Component {
    render () {
        return <div className="yzh-error-page">
            <Result
                icon={<Image width={250} height={250} preview={false} src={imgNull} />}
                subTitle="对不起，您访问的页面不存在"
                extra={<Button type="primary">
                    <Link to={'/'}>返回首页</Link>
                </Button>}
            />
        </div>
    }
}

export default Error;